package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.domain.Organization;
import cn.wolfcode.crm.query.impl.OrganizationQuery;

import java.util.List;

public interface OrganizationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Organization record);

    Organization selectByPrimaryKey(Long id);

    List<Organization> selectAll();

    int updateByPrimaryKey(Organization record);

    void changeState(Long id);

    int queryForCount(OrganizationQuery qo);

    List<Employee> queryForList(OrganizationQuery qo);

    Organization getByName(String name);
}